<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
</head>
<body>
<div class="container">
    <table class="table">
        <thead>
        <tr>
            <th scope="col">#</th>
            <th scope="col">商品类别</th>
            <th scope="col">商品品牌</th>
            <th scope="col">商品名称</th>
            <th scope="col">商品图片</th>
            <th scope="col">商品库存</th>
            <th scope="col">商品价格</th>
            <th scope="col">是否推荐</th>
            <th scope="col">是否特价</th>
            <th scope="col">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th scope="row">{$data.id}</th>
            <td>{$data.tname}</td>
            <td>{$data.bname}</td>
            <td>{$data.goods_name}</td>
            <td>
                {if condition="$data.images != '' "}
                {volist name="data.images" id="img"}
                <img src="{$img.img_url}" width="150px" height="150px">
                {/volist}
                {/if}
            </td>
            <td>{$data.count}</td>
            <td>{$data.price}</td>
            <td>
                {if condition="$data.is_hot == 1"}
                <span style="color: red">√</span>
                {else/}
                <span style="color: green">×</span>
                {/if}
            </td>
            <td>
                {if condition="$data.is_free == 1"}
                <span style="color: red">√</span>
                {else/}
                <span style="color: green">×</span>
                {/if}
            </td>
            <td><a href="{:url('admin/good/delete',['id'=>$data.id])}">删除</a></td>
        </tr>

        </tbody>
    </table>
</div>
</body>
</html>